Skip to content

Conversation

dblock
Copy link
Collaborator

@dblock dblock commented Sep 26, 2014

Curies get attached to LinkCollection since that's where they appear and matter, and then used to expand links. Open to refactoring this in some different way.

Expanding a curie is as simple as replacing {rel} in the curie's href by the URL, unless I am missing something. URITemplate would encode the URL if you said expand(rel: href), so I got stuck with a gsub. I could be wrong and there's a better way to do this.

@dblock dblock force-pushed the curies-support branch 2 times, most recently from cbd5bba to c9ae7ce Compare September 27, 2014 15:05
@oriolgual
Copy link
Member

Maybe you could add a note to the README so everyone knows that Hyperclient has curie support now :)

Anyway 👍, great job.

@dblock
Copy link
Collaborator Author

dblock commented Sep 30, 2014

Good point about docs, done.

dblock added a commit that referenced this pull request Sep 30, 2014
@dblock dblock merged commit bcf85db into codegram:master Sep 30, 2014
@dblock dblock deleted the curies-support branch September 30, 2014 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants